
package cn.jolyoulu.mqtt.config.mqtt;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @Author: JolyouLu
 * @Date: 2021/11/3 20:09
 * @Version 1.0
 * 自定义设置 druid连接池参数
 */
@Configuration
@ConfigurationProperties(value = "mqtt-config")
public class MqttProperties {

    /**
     * 节点别名
     */
    private String node;

    /**
     * 连接地址
     */
    private String broker;

    /**
     * 连接池大小
     */
    private Integer poolSize;

    /**
     * 用户名
     */
    private String username;
    /**
     * 密码
     */
    private String password;

    public String getNode() {
        return node;
    }

    public void setNode(String node) {
        this.node = node;
    }

    public String getBroker() {
        return broker;
    }

    public void setBroker(String broker) {
        this.broker = broker;
    }

    public Integer getPoolSize() {
        return poolSize;
    }

    public void setPoolSize(Integer poolSize) {
        this.poolSize = poolSize;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
